Historical updating oE attr_to_colors, Revision 1
attr_to_colors
include console.e namespace console public function attr_to_colors(integer attr_code)
converts an attribute code to its foreground and background color components.
Parameters:
- attr_code : integer, an attribute code.
Returns:
A sequence, of two elements -- {fgcolor, bgcolor}
Example 1:
? attr_to_colors(92) --> {12, 5}
See Also:
Not Categorized, Please Help
|
- diff to current revision, view current revision history, backlinks
- Last modified Sep 04, 2019 by _tom